package uset;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-11
 * Time: 22:00
 */
public abstract class User {
    protected String name;
    protected IOperation[] iOperations;
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doIoperation(int choice,BookList bookList) {
        this.iOperations[choice].work(bookList);
    }

}
